<?php

use Biz\service\package\PackageOrder;

class AnalysisAssistantAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;


    public function main()
    {
        $uid = $this->uid;

        // 是否购买
        $order = PackageOrder::getPayOrder($uid, 3);
        if ($order) {
            $data['buy'] = 1;
        } else {
            $data['buy'] = 0;
        }
        $data['goods'] = PackageOrder::PACKAGES[PackageOrder::PACKAGE_ID_3];

        $this->setSuccess($data, self::API_CODE_SUCCES);
    }
}